package homework;

public class zy06 {
	public static void main(String[] args) {
        String str = "java woaijava,i liek jajavava,i enjoy java";
        String toRemove = "java";
        String result = remove(str, toRemove);
        System.out.println(result);
    }

    public static String remove(String str, String toRemove) {
       
        return str.replace(toRemove, "");
    }
}
